import pymysql
from settings import dbParmas

conn = pymysql.Connect(**dbParmas)
print(conn)
cursor = conn.cursor()
sql = 'create database bbs'

cursor.execute(sql)
cursor.close()
conn.close()